import request from '@/utils/request'

export function showMsg(id) {
  return request({
    url: `/message/api/show_msg/${id}`,
    method: 'get'
  })
}

export function sendMsg(data) {
  return request({
    url: `/message/api/send_msg/`,
    method: 'post',
    data: data,
    timeout: 60000
  })
}

export function dt(data) {
  return request({
    url: '/message/api/dt/',
    method: 'post',
    data: data
  })
}

export function showOrderInfo(data) {
  return request({
    url: '/message/api/show_order_info/',
    method: 'post',
    data: data,
    timeout: 60000
  })
}

export function showCustomerInfo(data) {
  return request({
    url: '/message/api/show_customer_info/',
    method: 'post',
    data: data,
    timeout: 60000
  })
}

export function message_taggle(data) {
  return request({
    url: '/message/api/message_taggle/',
    method: 'post',
    data: data
  })
}
